package service;

import org.apache.ibatis.annotations.Param;
import entity.Supplier;
import utils.Page;

import java.util.List;

public interface SupplierService {
    public List<Supplier> getSuppliers();
    public int deleteSuppliers(@Param("id") Integer id);
    public boolean updateSupplier(Supplier supplier);

    public Page<Supplier> getPage(Supplier supplier, Integer pageNo, Integer pageSize);
    public Supplier getById(Long id);
    public boolean insertSupplier(Supplier supplier);
    public Supplier getSupCode(@Param("supCode") String supCode);
}
